import request from '@/utils/request'

// 查询店铺管理列表
export function listShopinfo(query) {
  return request({
    url: '/backstage/shopinfo/list',
    method: 'get',
    params: query
  })
}

// 查询店铺管理详细
export function getShopinfo(id) {
  return request({
    url: '/backstage/shopinfo/' + id,
    method: 'get'
  })
}

// 新增店铺管理
export function addShopinfo(data) {
  return request({
    url: '/backstage/shopinfo',
    method: 'post',
    data: data
  })
}

// 修改店铺管理
export function updateShopinfo(data) {
  return request({
    url: '/backstage/shopinfo',
    method: 'put',
    data: data
  })
}

// 删除店铺管理
export function delShopinfo(id) {
  return request({
    url: '/backstage/shopinfo/del/' + id,
    method: 'delete'
  })
}


export function alertShopinfo(id) {
  return request({
    url: '/backstage/shopinfo/alert/' + id,
    method: 'delete'
  })
}

export function getShopByUid(uid) {
  return request({
    url: "/backstage/shopinfo/getShop/" + uid,
    method: 'get'
  })
}
